/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	config.toolbar_Full =  
		[  
		    { name: 'document', items : [ 'Source','-',,'NewPage','DocProps','Preview','Print','-','Templates' ] },  
		    { name: 'clipboard', items : [ 'Cut','Copy','Paste','-','Undo','Redo' ] },  
		    { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },  
		    { name: 'forms', items : [ 'Checkbox', 'Radio', 'Select', 'Button'] },  
		 
		    { name: 'basicstyles', items : [ 'Bold','Italic'] },  
		    { name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },  
		    { name: 'links', items : [ 'Link','Unlink'] },  
		    { name: 'insert', items : [ 'Image','Table'] },  
		   
		    { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },  
		    { name: 'colors', items : [ 'TextColor','BGColor' ] },  
		    { name: 'tools', items : [ 'Maximize'] }  
		];  
	config.toolbar_Basic =  
		[  
		    ['Scayt', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', '-', 'Maximize']  
		];  
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	//config.pasteFromWordRemoveFontStyles = false;  //控制是否去掉font
	//config.pasteFromWordNumberedHeadingToList = true;  //控制是否把word的列表转换成html的list
	//config.pasteFromWordRemoveStyles = false;  //控制是否去掉styles
	//config.language='zh-cn';//配置语言  
    config.uiColor='#F8FBFF';//背景颜色  
    config.width="850px";//宽度  
    config.height='300px';//高度  
   // config.skin='office2003';  
    config.toolbar='Full';//工具栏风格Full,Basic  
    config.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;'+config.font_names;//将中文字体添加到字体列表  
    config.pasteFromWordRemoveStyles = true;  
    config.removePlugins = 'save';
    config.removePlugins = 'iframe';
    config.removePlugins = 'about';
    config.fullPage = false;
    config.font_defaultLabel = 'Arial';
    //config.startupMode='source';//wysiwyg 即见即所得
  //当提交包含有此编辑器的表单时，是否自动更新元素内的数据
    config.autoUpdateElement = true;

    //上传配置
    config.filebrowserImageUploadUrl = base +"/ueditorc/fckupload.html?Type=Image";
   // config.filebrowserImageUploadUrl = base +"/fck/upload.jhtml?Type=flash";
};
